#pragma once

#include "fxcc/core/BaseImporter.h"
#include "fxcc/core/audio/common/AudioMetaCacheFile.h"

struct AudioImporter :public BaseImporter
{
	static AudioMetaCacheFile m_AudioMetaData;

	static bool LoadCache();

	static bool SaveCache();

	static std::string m_AudioMetaPath;

	static std::string m_AudioPath;;

	AudioImporter()
	{
		m_Name = "AudioImporter";
	}

	bool ImportFile(const fxcc::File& file) override;

	bool ImportAudioFile(const fxcc::File& file);

	bool TransAudioFileToOgg(const std::string& source, const std::string& target);

	bool Availed(const fxcc::File& file);

};